package com.cn.designpatterns.ex.concrete.visitor.people;

/**
 * 定义访问者的具体实现类
 *
 * @author zhangyi
 * @date 2018/12/25 13:13
 */
public class PeopleVisitorImpl implements PeopleVisitor {

    @Override
    public void visit(Jack jack) {
        System.out.println("Jack something");
    }

    @Override
    public void visit(Tom tom) {
        System.out.println("Tom something");
    }
}
